package com.order.hit.crossover.platform.common.bean;

import lombok.ToString;

@ToString
public class Store_Value
{

    //  所属门店
    private Store store;
    //  顾客满意度权重
    private int customer_satisfy_weight;
    //  利润权重
    private int profit_weight;
    //  营业额权重
    private int sale_weight;
    //  销售量权重
    private int sales_volume_weight;

    public Store_Value()
    {
    }

    public Double CalculatedValue(double customer_satisfy, double profit, double sale, double sales_volume) {
        double value = this.customer_satisfy_weight * customer_satisfy +
                        this.profit_weight * profit +
                        this.sale_weight * sale +
                        this.sales_volume_weight * sales_volume;
        return value/(customer_satisfy_weight + profit_weight + sale_weight + sales_volume_weight);
    }

    public Store getStore()
    {
        return store;
    }

    public void setStore(Store store)
    {
        this.store = store;
    }

    public int getCustomer_satisfy_weight()
    {
        return customer_satisfy_weight;
    }

    public void setCustomer_satisfy_weight(int customer_satisfy_weight)
    {
        this.customer_satisfy_weight = customer_satisfy_weight;
    }

    public int getProfit_weight()
    {
        return profit_weight;
    }

    public void setProfit_weight(int profit_weight)
    {
        this.profit_weight = profit_weight;
    }

    public int getSale_weight()
    {
        return sale_weight;
    }

    public void setSale_weight(int sale_weight)
    {
        this.sale_weight = sale_weight;
    }

    public int getSales_volume_weight()
    {
        return sales_volume_weight;
    }

    public void setSales_volume_weight(int sales_volume_weight)
    {
        this.sales_volume_weight = sales_volume_weight;
    }


}
